﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            //猫、狗、鸭、猴，（吃、游泳、爬树）

           
            duck duck = new duck("小虾米");
            //duck.tell();
            //duck.swimm();
             text(duck);

            text1(duck);

            ////duck duck1 = new duck();
            ////duck1.eat = "鱼";
            ////duck1.tell();
            ////duck1.swimm();

            cat cat = new cat("小鱼");
            //cat.tell();
            //cat.climbb();
            text2(cat);

            mokey mokey = new mokey("香蕉");
            //mokey.tell();
            //mokey.climbb();
            text3(mokey);

            Dog dog = new Dog("骨头");
            //dog.tell();
            //dog.swimm();
            text4(dog);
        }
        static void text(Amelica amelica)
        {
            amelica.tell();
           
        }
        static void text1(duck duck)
        {
            duck.tell();
            duck.swimm();
        }
        static void text2(cat cat)
        {
            cat.tell();
            cat.climbb();
        }
        static void text3(mokey mokey)
        {
            mokey.tell();
            mokey.climbb();
        }
        static void text4(Dog dog)
        {
            dog.tell();
            dog.swimm();
        }
    }
}
